/*
 * Android Runner is a multiplayer GPS game fully written by Xurxo Mendez Perez
 * 
 * Copyright (C) 2009 Xurxo Mendez Perez
 *   
 * This file is part of Android Runner.
 * 
 * Android Runner is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Android Runner is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Android Runner.  If not, see <http://www.gnu.org/licenses/>.
 */

package es.sonxurxo.androidrunner.model.service.game.to;


/**
 * 
 * @author "Xurxo Mendez Perez"
 *
 */
public class QuestionTO extends ItemTO {

	private static final long serialVersionUID = -6849259293437790649L;
	
	private String question;
	private String option1;
	private String option2;
	private String option3;
	private int rightAnswer;
	
	public QuestionTO() {
		// Empty on purpose
	}
	
	public QuestionTO(long id, int points, int latitude, int longitude, String type,
			String question, String option1, String option2, 
			String option3, int rightAnswer) {
		super(id, points, latitude, longitude, type);
		this.question = question;
		this.option1 = option1;
		this.option2 = option2;
		this.option3 = option3;
		this.rightAnswer = rightAnswer;
	}
	
	public QuestionTO(String question, String option1, String option2, 
			String option3, int rightAnswer) {
		super();
		this.question = question;
		this.option1 = option1;
		this.option2 = option2;
		this.option3 = option3;
		this.rightAnswer = rightAnswer;
	}

	public String getOption1() {
		return option1;
	}

	public void setOption1(String option1) {
		this.option1 = option1;
	}

	public String getOption2() {
		return option2;
	}

	public void setOption2(String option2) {
		this.option2 = option2;
	}

	public String getOption3() {
		return option3;
	}

	public void setOption3(String option3) {
		this.option3 = option3;
	}

	public String getQuestion() {
		return question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public int getRightAnswer() {
		return rightAnswer;
	}

	public void setRightAnswer(int rightAnswer) {
		this.rightAnswer = rightAnswer;
	}
	
	public String toString() {
		return new String(
				"\n------------------------------------\n" + 
				"- question : " + this.question + "\n" +
				"- option1 : " + this.option1 + "\n" + 
				"- option2 : " + this.option2 + "\n" + 
				"- option3 : " + this.option3 + "\n" +
				"- right answer : " + this.rightAnswer + "\n" +
				"------------------------------------\n");
	}
}
